<?php

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use \dmstr\bootstrap\Tabs;

/**
* @var yii\web\View $this
* @var yiike\credit\models\CreditRecord $model
* @var yii\widgets\ActiveForm $form
*/

?>

<div class="credit-record-form">

    <?php $form = ActiveForm::begin([
    'id' => 'CreditRecord',
    'layout' => 'horizontal',
    'enableClientValidation' => true,
    'errorSummaryCssClass' => 'error-summary alert alert-error'
    ]
    );
    ?>

    <div class="">
        <?php echo $form->errorSummary($model); ?>
        <p>
            

           <?= $form->field($model, 'id')->textInput(['maxlength' => true]) ?>

           <?= // generated by schmunk42\giiant\generators\crud\providers\RelationProvider::activeField
$form->field($model, 'user_id')->dropDownList(
    \yii\helpers\ArrayHelper::map(yiike\credit\models\Credit::find()->all(), 'user_id', 'user_id'),
    ['prompt' => 'Select']
); ?>

           <?= // generated by schmunk42\giiant\generators\crud\providers\RelationProvider::activeField
$form->field($model, 'payer_id')->dropDownList(
    \yii\helpers\ArrayHelper::map(yiike\credit\models\Credit::find()->all(), 'user_id', 'user_id'),
    ['prompt' => 'Select']
); ?>

           <?= $form->field($model, 'type')->textInput() ?>

           <?= $form->field($model, 'sn')->textInput(['maxlength' => true]) ?>

           <?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>

           <?= $form->field($model, 'memo')->textInput(['maxlength' => true]) ?>

           <?= $form->field($model, 'value1')->textInput(['maxlength' => true]) ?>

           <?= $form->field($model, 'value2')->textInput(['maxlength' => true]) ?>

           <?= $form->field($model, 'value3')->textInput(['maxlength' => true]) ?>

           <?= $form->field($model, 'blance1')->textInput(['maxlength' => true]) ?>

           <?= $form->field($model, 'blance2')->textInput(['maxlength' => true]) ?>

           <?= $form->field($model, 'blance3')->textInput(['maxlength' => true]) ?>

           <?= $form->field($model, 'payer_blance1')->textInput(['maxlength' => true]) ?>

           <?= $form->field($model, 'payer_blance2')->textInput(['maxlength' => true]) ?>

           <?= $form->field($model, 'payer_blance3')->textInput(['maxlength' => true]) ?>

           <?= $form->field($model, 'union_id')->textInput() ?>

           <?= $form->field($model, 'union_from')->textInput(['maxlength' => true]) ?>

           <?= $form->field($model, 'is_pay')->textInput() ?>

           <?= $form->field($model, 'payment_at')->textInput() ?>

           <?= $form->field($model, 'status')->textInput() ?>

           <?= $form->field($model, 'created_by')->textInput() ?>

           <?= $form->field($model, 'updated_by')->textInput() ?>

           <?= $form->field($model, 'created_at')->textInput() ?>

           <?= $form->field($model, 'updated_at')->textInput() ?>
        </p>

        <hr/>

        <div class="form-group">
            <div class="col-sm-6 col-lg-offset-3">
                <?= Html::submitButton('<span class="fa fa-check-square-o"></span> 保存', ['id' => 'save-' . $model->formName(), 'class' => 'btn btn-success']);?>
            </div>
        </div>
        <br />
        <?php ActiveForm::end(); ?>

    </div>

</div>

